package com.yyg.boot.service.impl;

import com.yyg.boot.service.RedisService;
import com.yyg.boot.util.RedisUtil;
import org.springframework.stereotype.Service;

/**
 * @Author 一一哥Sun
 * @Date Created in 2020/4/8
 * @Description Description
 */
@Service
public class RedisServiceImpl implements RedisService {

    @Override
    public void setObj(String key, Object obj, long timeout) {
        RedisUtil.set(key,obj,timeout);
    }

    @Override
    public Object getObj(String key) {
        return RedisUtil.get(key);
    }
}
